package com.zhangzhan.gulimallauthserver.feign;

import com.zhangzhan.gulimallcommcon.util.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author 张一恒
 * @version 1.0
 * @description:
 * @date 2024/6/27 5:46
 */
@FeignClient("gulimall-third-party")
public interface PartyFeignService {

    /**
     * 发送手机验证码
     * @param phone
     * @param code
     * @return
     */
    @RequestMapping(value = "/sms/send", method = RequestMethod.GET)
    public R sendSms(@RequestParam("phone") String phone, @RequestParam("code") String code);

}
